Optimal. Leaf size=62 \[ -\frac {16 E\left (\left .\frac {1}{2} \left (e-\frac {\pi }{2}+f x\right )\right |2\right )}{f^3}-\frac {2 x^2 \cos (e+f x)}{f \sqrt {\sin (e+f x)}}+\frac {8 x \sqrt {\sin (e+f x)}}{f^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 62, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.069, Rules used = {3397, 2719}
\begin {gather*} -\frac {16 E\left (\left .\frac {1}{2} \left (e+f x-\frac {\pi }{2}\right )\right |2\right )}{f^3}+\frac {8 x \sqrt {\sin (e+f x)}}{f^2}-\frac {2 x^2 \cos (e+f x)}{f \sqrt {\sin (e+f x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2719
Rule 3397
Rubi steps
\begin {align*} \int \left (\frac {x^2}{\sin ^{\frac {3}{2}}(e+f x)}+x^2 \sqrt {\sin (e+f x)}\right ) \, dx &=\int \frac {x^2}{\sin ^{\frac {3}{2}}(e+f x)} \, dx+\int x^2 \sqrt {\sin (e+f x)} \, dx\\ &=-\frac {2 x^2 \cos (e+f x)}{f \sqrt {\sin (e+f x)}}+\frac {8 x \sqrt {\sin (e+f x)}}{f^2}-\frac {8 \int \sqrt {\sin (e+f x)} \, dx}{f^2}\\ &=-\frac {16 E\left (\left .\frac {1}{2} \left (e-\frac {\pi }{2}+f x\right )\right |2\right )}{f^3}-\frac {2 x^2 \cos (e+f x)}{f \sqrt {\sin (e+f x)}}+\frac {8 x \sqrt {\sin (e+f x)}}{f^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 5 vs. order 4 in
optimal.
time = 2.87, size = 185, normalized size = 2.98 \begin {gather*} \frac {8 e^{-i f x} \sqrt {2-2 e^{2 i (e+f x)}} \left (3 \, _2F_1\left (-\frac {1}{4},\frac {1}{2};\frac {3}{4};e^{2 i (e+f x)}\right )+e^{2 i f x} \, _2F_1\left (\frac {1}{2},\frac {3}{4};\frac {7}{4};e^{2 i (e+f x)}\right )\right ) \sec (e)}{3 \sqrt {-i e^{-i (e+f x)} \left (-1+e^{2 i (e+f x)}\right )} f^3}-\frac {\sec (e) \left (\left (8+f^2 x^2\right ) \cos (f x)+\left (-8+f^2 x^2\right ) \cos (2 e+f x)-8 f x \cos (e) \sin (e+f x)\right )}{f^3 \sqrt {\sin (e+f x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.12, size = 0, normalized size = 0.00 \[\int \frac {x^{2}}{\sin \left (f x +e \right )^{\frac {3}{2}}}+x^{2} \left (\sqrt {\sin }\left (f x +e \right )\right )\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x^{2} \left (\sin ^{2}{\left (e + f x \right )} + 1\right )}{\sin ^{\frac {3}{2}}{\left (e + f x \right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int x^2\,\sqrt {\sin \left (e+f\,x\right )}+\frac {x^2}{{\sin \left (e+f\,x\right )}^{3/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________